using System;
using System.Data;
using System.Configuration;
using System.Drawing;
using Clue_Less_Client.localhost;

namespace Clue_Less_Client
{
    /// <summary>
    /// Class used a game cell. May be either room, corridor or empty.
    /// </summary>
    public class BoardCell
    {
        public bool IsCorridor
        {
            get { return _room == Rooms.Corridor; }
        }
        private Rooms _room;

		public bool IsRoom
		{
			get { return (!IsCorridor && !IsEmpty); }
		}

        public Rooms Room
        {
            get { return _room; }
        }

        public bool IsCorner
        {
            get 
            {
                if (_room == Rooms.Study ||
                    _room == Rooms.Conservatory ||
                    _room == Rooms.Library ||
                    _room == Rooms.Kitchen)
                    return true;
                else
                    return false;
            }
        }

        public bool IsEmpty
        {
            get
            {
                if (_room == Rooms.Empty)
                    return true;
                else
                    return false;
            }
        }

        private short _xPosition;

        public short XPosition
        {
            get { return _xPosition; }
        }

        private short _yPosition;

        public short YPosition
        {
            get { return _yPosition; }
        }

        private Bitmap _smallImage;

        public Bitmap SmallImage
        {
            get { return _smallImage; }
            set { _smallImage = value; }
        }

        private Bitmap _disabledImage;

        public Bitmap DisabledImage
        {
            get { return _disabledImage; }
            set { _disabledImage = value; }
        }

        private Bitmap _largeImage;

        public Bitmap LargeImage
        {
            get { return _largeImage; }
            set { _largeImage = value; }
        }

        public BoardCell(Rooms room, short x, short y, Bitmap dis, Bitmap sm, Bitmap lg)
        {
            _room = room;
            _xPosition = x;
            _yPosition = y;
            _smallImage = sm;
            _disabledImage = dis;
            _largeImage = lg;
        }
    }
}
